package _spring_test._tests._events;

import org.springframework.util.ClassUtils;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;

/**
 * @Author: huangya
 * @Date: 2019/10/31
 * @Description:
 */
public class SpringEventTest {

    public void ddd(){

    }


    public static void main(String[] args) throws NoSuchMethodException {
        SpringEventTest.class.getMethod("ddd");
        SpringEventTest.class.getDeclaredMethod("ddd");

        ClassUtils.getMethod(SpringEventTest.class, "ddd", null);


        String a = "1";
        List<String> list = new ArrayList<>();
        list.add(a);

        String[] arr = new String[1];
        String[] arr2 = {"1"};

        String[][] arr3 = new String[1][1];

        String[][][] arr4 = new String[1][1][1];


        HashSet<String> hashSet = new HashSet();
        String aaa = "1";
        String bbb = new String("1");
        System.out.println(hashSet.add("1"));
        System.out.println(hashSet.add("1"));
        System.out.println(hashSet.add(aaa));
        System.out.println(hashSet.add(bbb));
    }
}
